package com.lrc.dentalbackend.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName message_list
 */
@TableName(value ="message_list")
@Data
public class MessageList implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 当前用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 对面聊天的id
     */
    @TableField(value = "to_user_id")
    private Long toUserId;

    @TableField(value = "status")
    private Integer status;

    /**
     * 逻辑删除
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}